<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
    let str = "liwancai";
    let s1 = "li";
    console.log(str.includes(s1));
    console.log(str.startsWith(s1));
    console.log(str.endsWith(s1));
    
    console.log(str.repeat(3));
    
    console.log(str.padStart(13,"a"));
    console.log(str.padEnd(13,"b"));
    
    console.log(str.at(5));
    console.log(str.at(-4));
    
    

    </script>
</body>
</html>